﻿<cfcomponent>
<cfscript>
DB = 'chinalaohu';
dbt = 'user_points';
</cfscript>

<cffunction name="userpoints" access="public" returntype="query">
	<cfquery datasource="#DB#" name="userpoints">
  select *
  from #dbt#
  WHERE 
  uid = #uid#
  order by upID desc
  </cfquery>
  <cfreturn userpoints>
</cffunction>

</cfcomponent>